//
//  AuthorInfoTableViewCell.m
//  瓜子电台
//
//  Created by lanou on 16/8/9.
//  Copyright © 2016年 YueZhang. All rights reserved.
//

#import "AuthorInfoTableViewCell.h"

@implementation AuthorInfoTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void) setDataWithModel:(AuthorInfoModel *)model
{
    [self.pic sd_setImageWithURL:[NSURL URLWithString:model.smallLogo] placeholderImage:[UIImage imageNamed:@"picPlaceHolder"]];
    self.pic.layer.cornerRadius = self.pic.frame.size.width / 2;
    self.pic.clipsToBounds = YES;
    self.authorName.text = model.nickname;
    self.authorIntro.text = model.personalSignature;
    self.attention.text = [NSString stringWithFormat:@"已被%ld万人关注", model.followers / 10000];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
